﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WebProject.Core.Models
{
    [Table("News")]
    public class News : IEntity
    {
        [Key]
        public int Id
        {
            get; set;
        }

        public string Title
        {
            get;
            set;
        }

        public string Content
        {
            get; set;
        }

        public string Comment
        {
            get; set;
        }

        public DateTime CreateDate
        {
            get; set;
        }

        public string NewsImageUrl
        {
            get; set;
        }

        public bool IsDisplay
        {
            get; set;
        }

    }
}